package com.xyht.sca_s.student_manage_system.modules.assetFixedBorrow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 我的资产
 * </p>
 *
 * @author XYHT
 * @since 2023-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_asset_my_assets")
@ApiModel(value="SmsAssetMyAssets对象", description="我的资产")
public class SmsAssetMyAssets implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "资产id")
    private String assetId;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "资产状态：1：借用，2：归还")
    private Integer myAssetStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "借用时间")
    private Date borrowTime;

    @ApiModelProperty(value = "归还时间")
    private Date returnTime;

    private String assetName;

    private String assetCategory;

    private String assetBrand;

    private String assetModel;

    private String assetPrice;

}
